package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.base.ResponseResult;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description NursingLevelMapper
 * @Author zpf
 * @Date 2024-08-27
 */
@Mapper
public interface NursingLevelMapper {

    //     3.1 查询所有护理等级
    List<NursingLevelVo> listAll();

    //    新增护理等级
    int insert(NursingLevel record);


    // 3.3 条件分页查询
    Page<NursingLevelVo> selectByPage(@Param("name") String name,
                                      @Param("status") Integer status);

    //3.4 根据id查询护理等级
    NursingLevel getById(Long id);

    //3.5 修改护理等级
    void update(NursingLevel nursingLevel);

    //3.6 删除
    void delete(Long id);
//    启用禁用
    void updateStatus(@Param("id") Long id, @Param("status") Integer status);

    // 批量插入护理等级数据
    void insertBatch(List<NursingLevel> levels);
}
